package run.bottle.gof23.builder.d2;

public class Worker extends Builder {

    private Product product;

    public Worker() {
        product = new Product();
    }

    public Builder builderA(String name) {
        product.setBuilderA(name);
        return this;
    }

    public Builder builderB(String name) {
        product.setBuilderB(name);
        return this;
    }

    public Builder builderC(String name) {
        product.setBuilderC(name);
        return this;
    }

    public Builder builderD(String name) {
        product.setBuilderD(name);
        return this;
    }

    public Product getProduct() {
        return product;
    }
}
